﻿{% load filter %}
{% extends '2base.html' %}
{% block title %}
<title>Wow Dkp Engine Forum</title>
<script type="text/javascript">
$(document).ready(function(){

$(".topiclist TBODY TR").mouseover(function(){
  $('TD',this).css("background-color","#b5edbc");
}).mouseout(function(){
  $('TD',this).css("background-color","#eef9eb");
}).click(function(){
  var gourl = $('TD A',this).attr("href");
  window.location.href=gourl;
  return false;
});
});
</script>

<style type="text/css" media="screen">
	#paginate {
		text-align: center;
	}
	#paginate a {
		text-decoration: none;
	}
	#paginate a:hover {
		text-decoration: underline;
	}
	.current-page-mark {
		background-color: #b5edbc;
		padding: 0 4px 0 4px;
		color: #fff;
	}
	#paginate b {
		padding: 0 4px 0 4px;
	}
</style>
{% endblock %}
{% block headline %}
{% endblock %}
{% block secondmenu %}{% include 'second_menu.html'%}{% endblock %}
{% block content %}
<table class="topiclist" cellspacing="0" style="border-collapse:collapse">
<thead>
	<tr>
		<th>{{ multi_language.fa_forum_index_lang_title}}</th>
		<th>{{ multi_language.fa_forum_index_lang_author}}</th>
		<th>{{ multi_language.fa_forum_index_lang_reply}}</th>
		<th>{{ multi_language.fa_forum_index_lang_latest_reply}}</th>
	</tr>
	</thead>
	<tbody>
	{% for topic in topics %}
	<tr>
		<td><a href="/forum/topic/view/{{ topic.key.id }}" title="{{ topic.post_on|timezone:8|date:"Y-m-d H:i:s" }}">{{ topic.title }}</a></td>
		<td>{{ topic.author.username }}</td>
		<td>{{ topic.get_reply_count }}</td>
		<td>{% if topic.get_last_reply %}{{ topic.get_last_reply.post_on|timezone:8|date:"Y-m-d H:i:s" }}{% else %}{{ topic.post_on|timezone:8|date:"Y-m-d H:i:s" }}{% endif %}</td>
	</tr>
	{% endfor %}
	</tbody>
</table>
{% include 'paginate.html' %}
{% endblock%}
{% block siderbar %}
{% include 'forumSiderbar.html' %}
{% endblock%}